# def bubble(bubbleList):
#     listLength = len(bubbleList)
#     while listLength > 0:
#         for i in range(listLength - 1):
#             if bubbleList[i] > bubbleList[i + 1]:
#                 bubbleList[i] = bubbleList[i] + bubbleList[i + 1]
#                 bubbleList[i + 1] = bubbleList[i] - bubbleList[i + 1]
#                 bubbleList[i] = bubbleList[i] - bubbleList[i + 1]
#         listLength -= 1
#     print(bubbleList)
#
#
# if __name__ == '__main__':
#     bubbleList = [2, 8, 4, 7, 5, 9, 0]
#     bubble(bubbleList)



# def recursion(n):
#     if n == 1:
#         return 1
#     else:
#         return n * recursion(n-1)
#
# @recursion
# def printlog(num):
#     print(num)
#
# print(printlog(10))
#
# strA = "abcdegfgijlk"
# print(strA[::-1])

strA = input("请输入需要翻转的字符串：")
print (strA[::-1])